<style>
  .price{margin-bottom: 5px;display: block;float: left;width: 100%;}
  .price i{font-size: 30px;cursor:pointer}
  .layui-input-block input{ padding-left: 10px;height: 38px;margin-right: 5px;
    line-height: 38px;
    line-height: 36px\9;
    border: 1px solid #e6e6e6;
    background-color: #fff;
    border-radius: 2px;}
    .attr .one{width:50px;padding:5px 2px;}
    .attr .two{width:500px;padding:5px 2px; }
</style>
<form class="layui-form mt_2" action="">
    <input type='hidden' value='<?=$goods_id?>' name='goods_id'/>
    <div class="layui-form-item">
        <label class="layui-form-label">推荐位：</label>
        <div class="layui-input-block">
            <?php foreach($list as $v):?>
                <input type="checkbox" name="rec_id[]" value='<?=$v['id'];?>' title="<?=$v['title'];?>">
            <?php endforeach;?>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="myform">立即提交</button>
        </div>
    </div>
</form>
